package twinb;

import java.util.Map;

public class Utils
{
    public static <TKey, TValue>
    TValue mapTryGet(Map<TKey, TValue> map, TKey key, TValue defaultValue)
    {
        if (map.containsKey(key))
            return map.get(key);
        return defaultValue;
    }
}
